package com.xiguanlezz.cn.server;

import java.net.InetSocketAddress;

/**
 * @Author：习惯了种种
 * @CreateDate：2024/11/3 14:25
 * @Description：
 */
public abstract class BaseServer implements Server {
    protected String host = "127.0.0.1";
    protected int port = 28888;

    public BaseServer(InetSocketAddress address) {
        host = address.getHostName();
        port = address.getPort();
    }

    @Override
    public abstract void startServer();

}
